package io.renren;

import io.renren.dao.SysOssMapper;
import io.renren.dao.SysRoleMapper;
import io.renren.model.SysOss;
import io.renren.model.SysRole;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * @Author: zyx
 * @Date: 2018/11/16 9:53
 * @Version 1.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest
@MapperScan("io.renren.dao")
@org.mybatis.spring.annotation.MapperScan("io.renren.dao")
public class RenrenApplicationTest {
  @Autowired
  private SysRoleMapper typeDao;
  @Autowired
  private SysOssMapper sysOssMapper;
  @Test
  public void testAutowired() throws Exception{
    System.out.println(typeDao);
    List<SysRole> type = typeDao.selectAll();
    System.out.println(type);
    List<SysOss> type1 = sysOssMapper.selectAll();
    System.out.println(type1);
  }

}
